package de.blitzcoder.collide.config;

import javax.swing.JPanel;
import de.blitzcoder.collide.util.Log;


/*
	BlitzMax IDE
	**************************************************
	Copyright (c) 2007-2008 by Johannes Wotzka
	All Rights reserved
        --------------------------------------------------
        File: ide/config/ConfigTab.java
 
        This is an abstract class for the Tabs in the Config Dialog. All Tabs have to extend this
*/


// Abstract class for the Tabs in the Config Dialog
public abstract class ConfigTab extends JPanel {

    // Init a Tab, create the Interface and load the Values
    public void init() {

        Log.log("initialising "+this.getTitle());

        // Create gadgets
        createInterface();

        // Load the Values
        load();
    }


    public abstract void        save();             // Save current Config-Values
    public abstract void        load();             // Load values
    public abstract void        createInterface();  // Create the UI for this Tab
    public abstract String      getTitle();         // This has to be overriden to get the Title of a Tab
    public          void        cancel() {}         // Cancel
}